package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.RoomTypeMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.RoomTypeService;
import com.the4man.cnbdw.utils.SelectModel;
import com.the4man.framework.model.RoomType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("roomTypeService")
public class RoomTypeServiceImpl extends AbstractService<RoomType> implements RoomTypeService {
    @Autowired
    RoomTypeMapper roomTypeMapper;

    public RoomTypeServiceImpl() {
    }

    public List<SelectModel> getRoomTypeSelectData() {
        return this.roomTypeMapper.getRoomTypeSelectData();
    }

    public RoomType selectByName(String name) {
        return this.roomTypeMapper.selectByName(name);
    }

    public RoomType selectMByName(String id, String name) {
        return this.roomTypeMapper.selectMByName(id, name);
    }
}
